import java.util.Scanner;

public class Main1392 {
    public static void main(String[] args) {
        for (int i=100;i<1000;i++){
            int a=i%10;//1
            int b=i/100;//1

            if (a==b&&a%2==0&&b%2==0){
                System.out.println(i);
            }
        }
    }
}
